/*
*			ÊµÏÖ»·ÐÎ»º³åÇø£¬×Ô¶¯¸²¸Ç
*/

#pragma once 
#include <vector>
#include "CxImageBuffer.h"
#include "CxType.h"
using std::vector;

BEGIN_NAMESPACE(DataRevPart)

class CxCircularBuffer	: public CxImageBuffer<vector>
{
public:
	CxCircularBuffer(size_t size=16);
	~CxCircularBuffer();
public:

	Mat			Pop();
	void		Push(const Mat &);

private:

	void		Push_(const Mat&);
	Mat			Pop_();

	volatile	size_t		m_curpt;


};

END_NAMESPACE
